﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:uc="clr-namespace:ConsoleHoster.View.Controls"
        xmlns:vm="clr-namespace:ConsoleHoster.ViewModel"
        x:Class="ConsoleHoster.View.Popups.GlobalCommandsView"
        Title="Global Commands" Width="500" Height="400" Style="{DynamicResource PopupStyle}" WindowStartupLocation="CenterOwner">
    <Grid Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <uc:CommandListEditor HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding Path=CommandListDetailsVM}" />

        <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0, 5, 0, 3" HorizontalAlignment="Center" >
            <Button Content="Save" Width="100" Click="btnSave_Click" Margin="3, 0, 0, 0" Cursor="Hand" />
            <Button x:Name="btnCancel" Content="Cancel" Width="100" Margin="3, 0, 0, 0" Click="btnCancel_Click" Cursor="Hand" />
        </StackPanel>
    </Grid>
</Window>
